//package cn.enjoy;
//
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//
//@Configuration
//@EnableWebSecurity
//public class EurekaSecurityConfig extends WebSecurityConfigurerAdapter {
//    @Override
//    protected void configure(HttpSecurity http) throws Exception {
//        //劫持设置不可用 csrf 劫持安全框架
//        // 只有这个关闭那么服务才能通过安全认证，注册到eureka server上面
//        http.csrf().disable();
//        super.configure(http);
//    }
//}